﻿<%@ Page Title="Sign Up" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ThreeDPrinting.Pages.Register.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div class="centerColumn" style="height:757px">
        <div class="box-head">REGISTER</div>
        <div class="pageContent">
<%--    <asp:Panel ID="Register" runat="server" GroupingText="Register" BorderWidth="0">--%>
    <table style="width: 100%">
        <tr>
            <td id="left_column">
                <table style="width:75%">
                    <tr>
                        <td colspan="3"><asp:Label ID="lblnewMember" runat="server" Text="New Member?"></asp:Label><br /></td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblsignup" runat="server" Text="Sign Up"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>User Name:</td>
                        <td>
                            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="valUserNameRequired" runat="server"
                                ControlToValidate="txtUserName"
                                ErrorMessage="*You must enter a User Name" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td>
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="valPasswordRequired" runat="server"
                                ControlToValidate="txtPassword"
                                ErrorMessage="*You must enter a Password" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td>Password Confirmation:</td>
                        <td>
                            <asp:TextBox ID="txtPasswordConfirmation" runat="server" TextMode="Password"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="valPasswordConfirm" runat="server"
                                ControlToValidate="txtPasswordConfirmation"
                                ErrorMessage="*You must enter a Password" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="valComparePassword" runat="server" ControlToValidate="txtPasswordConfirmation" ControlToCompare="txtPassword"
                                Operator="Equal"
                                Type="String"
                                ErrorMessage="*Password could not be confirm!"
                                Display="dynamic"
                                ForeColor="Red">
                            </asp:CompareValidator>
</td>
                    </tr>
                    <tr>
                        <td>E-mail:</td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="valEmailRequired" runat="server"
                                ControlToValidate="txtEmail"
                                ErrorMessage="*You must enter a E-mail Address" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="valRegEx" runat="server"
                                ControlToValidate="txtEmail"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ErrorMessage="*Ex. (abc@def.com)"
                                Display="dynamic" ForeColor="Red"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td>E-mail Confirmation:</td>
                        <td>
                            <asp:TextBox ID="txtEmailConfirmation" runat="server"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="valEmailConfirm" runat="server"
                                ControlToValidate="txtEmailConfirmation"
                                ErrorMessage="*You must enter a E-mail Address" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="valCompareEmail" runat="server" ControlToValidate="txtEmailConfirmation" ControlToCompare="txtEmail"
                                Operator="Equal"
                                Type="String"
                                ErrorMessage="*E-mail could not be confirm!"
                                Display="dynamic" 
                                ForeColor="Red">
                            </asp:CompareValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                ControlToValidate="txtEmailConfirmation"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ErrorMessage="*Ex. (abc@def.com)"
                                Display="dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                        </td>
                    </tr>

                </table>
            </td>          
        </tr>
    </table>

<%--    </asp:Panel>--%>
    <asp:Button ID="btnCreateAccount" runat="server" Text="Create Account" OnClick="btnCreateAccount_Click" />
            </div>
            </div>
</asp:Content>
